package com.dongdongshop.mongopojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Comment implements Serializable{
    @Id
    private String id;
    @Field("item_id")
    private Long itemId;
    @Field("user_name")
    private String userName;
    @Field("time")
    private Date time;
    @Field("grade")
    private String grade;
    @Field("content")
    private String content;
    @Field("like")
    private Integer like;
}
